package com.ruoyi.project.system.domain.vo;

import com.ruoyi.project.system.domain.TiXian;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class TiXianVo {

    private int code;

    private BigDecimal total;

    private BigDecimal refundTotal;

    private BigDecimal actualTotal;

    List<TiXian> tiXians;

    public TiXianVo() {
        this.code = 400;
    }

    public TiXianVo(BigDecimal total, BigDecimal refundTotal, BigDecimal actualTotal, List<TiXian> tiXians) {
        this.code = 200;
        this.total = total;
        this.refundTotal = refundTotal;
        this.actualTotal = actualTotal;
        this.tiXians = tiXians;
    }
}
